<?php
/* @var $this MannschaftController */
/* @var $dataProvider CActiveDataProvider */
	
$this->widget('bootstrap.widgets.TbButton', array(
	'icon' => 'icon-plus',
    'label'=> 'Mannschaft anlegen',
    'type'=>'primary', // null, 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
    'size'=>'mini', // null, 'large', 'small' or 'mini'
	'htmlOptions' => array('style'=> 'float:right'),
)); 

echo("</br>");


$this->widget('bootstrap.widgets.TbGridView', array(
    'type'=>'striped bordered condensed',
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array('name'=>'bezeichnung', 'header'=>'Mannschaft'),
        array('name'=>'jugend', 'header'=>'Jugend'),
        array('name'=>'spieleranzahl', 'header'=>'Spieler'),
		array('name'=> 'trainerID', 'header'=>'Trainer'),
        array(
            'class'=>'bootstrap.widgets.TbButtonColumn',
            'htmlOptions'=>array('style'=>'width: 50px'),
        ),
    ),
));

$auth = Yii::app()->authManager;
echo($auth->isInitialized."</br>");
print_r($auth->roles);
echo("</br>");
echo("</br>");
echo("</br>");
echo("</br>");
var_dump($auth);


?>
